package com.qiangesoft.blog.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 博客评论
 * </p>
 *
 * @author qiange
 * @since 2023-06-05
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
public class BlogComment implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 评论人ID
     */
    private Long userId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 内容
     */
    private String content;

    /**
     * 回复人id
     */
    private Long replyUserId;

    /**
     * 父id
     */
    private Long parentId;

    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
